<?php
/**
 * Новые поступления
 */
class ArticlesNew extends CWidget
{
	private $articles;
	
	public function init()
	{
		$this->articles = Catalog::getLastArticles(10);
	}
	
	public function run()
	{
		$this->render('articlesNew', array(
			'articles'=>$this->articles,
		));
	}

}